<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/Citi.EmailSender.Domain" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/Citi.EmailSender.Domain" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import schemaLocation="http://localhost:10655/Email.svc?xsd=xsd4" namespace="http://schemas.datacontract.org/2004/07/Citi.EmailSender.Domain.Repository" />
  <xs:simpleType name="Enums.EmailImportance">
    <xs:restriction base="xs:string">
      <xs:enumeration value="Low" />
      <xs:enumeration value="Normal" />
      <xs:enumeration value="High" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="Enums.EmailImportance" nillable="true" type="tns:Enums.EmailImportance" />
  <xs:complexType name="Email">
    <xs:complexContent mixed="false">
      <xs:extension base="tns:EntityBaseOfEmailSpG8DHFJ">
        <xs:sequence>
          <xs:element minOccurs="0" name="Attachments" nillable="true" type="tns:ArrayOfAttachment" />
          <xs:element minOccurs="0" name="Body" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="CreatedDate" type="xs:dateTime" />
          <xs:element minOccurs="0" name="EmailReceivers" nillable="true" type="tns:ArrayOfEmailReceiver" />
          <xs:element minOccurs="0" name="Importance" type="tns:Enums.EmailImportance" />
          <xs:element minOccurs="0" name="OnBehalfOf" nillable="true" type="tns:OnBehalfOf" />
          <xs:element minOccurs="0" name="OnBehalfOfId" type="xs:int" />
          <xs:element minOccurs="0" name="SentOn" type="xs:dateTime" />
          <xs:element minOccurs="0" name="Subject" nillable="true" type="xs:string" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="Email" nillable="true" type="tns:Email" />
  <xs:complexType name="EntityBaseOfEmailSpG8DHFJ">
    <xs:annotation>
      <xs:appinfo>
        <GenericType Name="EntityBaseOf{0}{#}" Namespace="http://schemas.datacontract.org/2004/07/Citi.EmailSender.Domain" xmlns="http://schemas.microsoft.com/2003/10/Serialization/">
          <GenericParameter Name="Email" Namespace="http://schemas.datacontract.org/2004/07/Citi.EmailSender.Domain" />
        </GenericType>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexContent mixed="false">
      <xs:extension xmlns:q1="http://schemas.datacontract.org/2004/07/Citi.EmailSender.Domain.Repository" base="q1:RepositoryBaseOfEmailSpG8DHFJ">
        <xs:sequence>
          <xs:element minOccurs="0" name="Id" type="xs:int" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="EntityBaseOfEmailSpG8DHFJ" nillable="true" type="tns:EntityBaseOfEmailSpG8DHFJ" />
  <xs:complexType name="ArrayOfAttachment">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="Attachment" nillable="true" type="tns:Attachment" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfAttachment" nillable="true" type="tns:ArrayOfAttachment" />
  <xs:complexType name="Attachment">
    <xs:complexContent mixed="false">
      <xs:extension base="tns:EntityBaseOfAttachmentSpG8DHFJ">
        <xs:sequence>
          <xs:element minOccurs="0" name="Email" nillable="true" type="tns:Email" />
          <xs:element minOccurs="0" name="EmailId" type="xs:int" />
          <xs:element minOccurs="0" name="Path" nillable="true" type="xs:string" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="Attachment" nillable="true" type="tns:Attachment" />
  <xs:complexType name="EntityBaseOfAttachmentSpG8DHFJ">
    <xs:annotation>
      <xs:appinfo>
        <GenericType Name="EntityBaseOf{0}{#}" Namespace="http://schemas.datacontract.org/2004/07/Citi.EmailSender.Domain" xmlns="http://schemas.microsoft.com/2003/10/Serialization/">
          <GenericParameter Name="Attachment" Namespace="http://schemas.datacontract.org/2004/07/Citi.EmailSender.Domain" />
        </GenericType>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexContent mixed="false">
      <xs:extension xmlns:q2="http://schemas.datacontract.org/2004/07/Citi.EmailSender.Domain.Repository" base="q2:RepositoryBaseOfAttachmentSpG8DHFJ">
        <xs:sequence>
          <xs:element minOccurs="0" name="Id" type="xs:int" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="EntityBaseOfAttachmentSpG8DHFJ" nillable="true" type="tns:EntityBaseOfAttachmentSpG8DHFJ" />
  <xs:complexType name="ArrayOfEmailReceiver">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="EmailReceiver" nillable="true" type="tns:EmailReceiver" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfEmailReceiver" nillable="true" type="tns:ArrayOfEmailReceiver" />
  <xs:complexType name="EmailReceiver">
    <xs:complexContent mixed="false">
      <xs:extension base="tns:EntityBaseOfEmailReceiverSpG8DHFJ">
        <xs:sequence>
          <xs:element minOccurs="0" name="Email" nillable="true" type="tns:Email" />
          <xs:element minOccurs="0" name="EmailAddress" nillable="true" type="tns:EmailAddress" />
          <xs:element minOccurs="0" name="EmailAddressId" type="xs:int" />
          <xs:element minOccurs="0" name="EmailId" type="xs:int" />
          <xs:element minOccurs="0" name="Type" type="tns:Enums.EmailReceiverType" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="EmailReceiver" nillable="true" type="tns:EmailReceiver" />
  <xs:complexType name="EntityBaseOfEmailReceiverSpG8DHFJ">
    <xs:annotation>
      <xs:appinfo>
        <GenericType Name="EntityBaseOf{0}{#}" Namespace="http://schemas.datacontract.org/2004/07/Citi.EmailSender.Domain" xmlns="http://schemas.microsoft.com/2003/10/Serialization/">
          <GenericParameter Name="EmailReceiver" Namespace="http://schemas.datacontract.org/2004/07/Citi.EmailSender.Domain" />
        </GenericType>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexContent mixed="false">
      <xs:extension xmlns:q3="http://schemas.datacontract.org/2004/07/Citi.EmailSender.Domain.Repository" base="q3:RepositoryBaseOfEmailReceiverSpG8DHFJ">
        <xs:sequence>
          <xs:element minOccurs="0" name="Id" type="xs:int" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="EntityBaseOfEmailReceiverSpG8DHFJ" nillable="true" type="tns:EntityBaseOfEmailReceiverSpG8DHFJ" />
  <xs:complexType name="EmailAddress">
    <xs:complexContent mixed="false">
      <xs:extension base="tns:EntityBaseOfEmailAddressSpG8DHFJ">
        <xs:sequence>
          <xs:element minOccurs="0" name="Address" nillable="true" type="xs:string" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="EmailAddress" nillable="true" type="tns:EmailAddress" />
  <xs:complexType name="EntityBaseOfEmailAddressSpG8DHFJ">
    <xs:annotation>
      <xs:appinfo>
        <GenericType Name="EntityBaseOf{0}{#}" Namespace="http://schemas.datacontract.org/2004/07/Citi.EmailSender.Domain" xmlns="http://schemas.microsoft.com/2003/10/Serialization/">
          <GenericParameter Name="EmailAddress" Namespace="http://schemas.datacontract.org/2004/07/Citi.EmailSender.Domain" />
        </GenericType>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexContent mixed="false">
      <xs:extension xmlns:q4="http://schemas.datacontract.org/2004/07/Citi.EmailSender.Domain.Repository" base="q4:RepositoryBaseOfEmailAddressSpG8DHFJ">
        <xs:sequence>
          <xs:element minOccurs="0" name="Id" type="xs:int" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="EntityBaseOfEmailAddressSpG8DHFJ" nillable="true" type="tns:EntityBaseOfEmailAddressSpG8DHFJ" />
  <xs:simpleType name="Enums.EmailReceiverType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="To" />
      <xs:enumeration value="Cc" />
      <xs:enumeration value="Bcc" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="Enums.EmailReceiverType" nillable="true" type="tns:Enums.EmailReceiverType" />
  <xs:complexType name="OnBehalfOf">
    <xs:complexContent mixed="false">
      <xs:extension base="tns:EntityBaseOfOnBehalfOfSpG8DHFJ">
        <xs:sequence>
          <xs:element minOccurs="0" name="EmailAddress" nillable="true" type="xs:string" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="OnBehalfOf" nillable="true" type="tns:OnBehalfOf" />
  <xs:complexType name="EntityBaseOfOnBehalfOfSpG8DHFJ">
    <xs:annotation>
      <xs:appinfo>
        <GenericType Name="EntityBaseOf{0}{#}" Namespace="http://schemas.datacontract.org/2004/07/Citi.EmailSender.Domain" xmlns="http://schemas.microsoft.com/2003/10/Serialization/">
          <GenericParameter Name="OnBehalfOf" Namespace="http://schemas.datacontract.org/2004/07/Citi.EmailSender.Domain" />
        </GenericType>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexContent mixed="false">
      <xs:extension xmlns:q5="http://schemas.datacontract.org/2004/07/Citi.EmailSender.Domain.Repository" base="q5:RepositoryBaseOfOnBehalfOfSpG8DHFJ">
        <xs:sequence>
          <xs:element minOccurs="0" name="Id" type="xs:int" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="EntityBaseOfOnBehalfOfSpG8DHFJ" nillable="true" type="tns:EntityBaseOfOnBehalfOfSpG8DHFJ" />
</xs:schema>